package com.book.dao.impl;

import com.book.dao.OrderDao;
import com.book.pojo.Order;

public class OrderDaoImpl extends BaseDao implements OrderDao {
    @Override
    public int savaOrder(Order order) {
        String sql="insert into book.t_order(`order_id`,`create_time`,`price`,`status`,`user_id`) values(?,?,?,?,?)";
       return update(sql, order.getOrderId(),order.getCreateTime(),order.getPrice(),order.getStatus(),order.getUserId());
    }
}
